package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售信息对象 sell
 * 
 * @author 徐国洋
 * @date 2025-02-24
 */
public class Sell extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long pid;

    /** 销售时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date selldate;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long sellmount;

    /** 销售总价 */
    @Excel(name = "销售总价")
    private BigDecimal moneysum;

    private Product product;

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setSelldate(Date selldate) 
    {
        this.selldate = selldate;
    }

    public Date getSelldate() 
    {
        return selldate;
    }
    public void setSellmount(Long sellmount) 
    {
        this.sellmount = sellmount;
    }

    public Long getSellmount() 
    {
        return sellmount;
    }
    public void setMoneysum(BigDecimal moneysum) 
    {
        this.moneysum = moneysum;
    }

    public BigDecimal getMoneysum() 
    {
        return moneysum;
    }

    @Override
    public String toString() {
        return "Sell{" +
                "id=" + id +
                ", pid=" + pid +
                ", selldate=" + selldate +
                ", sellmount=" + sellmount +
                ", moneysum=" + moneysum +
                ", product=" + product +
                '}';
    }
}
